<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <%@include file="/res/include/base-head.jsp"%>
	<%@include file="/res/include/jquery-easyui.jsp"%>
	<script type="text/javascript" src="${pageContext.request.contextPath}/res/js/user/userDraw.js"></script>
  </head>
  <body>
<form id="data-form">
	<div class="form_item">
	<input  type="hidden" name="id" value="${userDrawVo.id}"/>
	<dl>
        <dt>指定用户ID：</dt>
        <dd><input type="text" name="userId" value="${userDrawVo.userId }" class="txt grid-25" maxlength="32"/></dd>
    </dl>
    <dl>
        <dt>状态：</dt>
        <dd>
        	<select name="status">
				<option value="1"
					<c:if test="${userDrawVo != null && userDrawVo.status==1}"> selected="selected"</c:if>
				>已领取</option>
				<option value="2"
					<c:if test="${userDrawVo != null && userDrawVo.status==2}"> selected="selected"</c:if>
				>未领取</option>
				<option value="3"
					<c:if test="${userDrawVo != null && userDrawVo.status==3}"> selected="selected"</c:if>
				>已失效</option>
			</select>
        </dd>
    </dl>
    <dl>
        <dt>奖品ID：</dt>
        <dd><input type="text" name="drawItemId" value="${userDrawVo.drawItemId }" class="txt grid-25" maxlength="32"/></dd>
    </dl>
    <dl>
        <dt>奖品领取时间：</dt>
	       <dd>
	       		<fmt:formatDate var="updAt" value="${userDrawVo.updAt}" pattern="yyyy-MM-dd HH:mm:ss"/>
	       		<input id="updAt" type="text" class="txt easyui-datetimebox grid-15" name="updAt" value="${updAt}" data-options="required:false,validType:'datetime'" />
	       </dd>
    </dl>
    <dl>
        <dt>中奖时间：</dt>
	       <dd>
	       		<fmt:formatDate var="newAt" value="${userDrawVo.newAt}" pattern="yyyy-MM-dd HH:mm:ss"/>
	       		<input id="newAt" type="text" class="txt easyui-datetimebox grid-15" name="newAt" value="${newAt}" data-options="required:false,validType:'datetime'" />
	       </dd>
    </dl>
		<p class="page_btn"><input type="button" id="saveBtn" value="保存" class="btn_blue" onclick="admin.userDraw.update();"/></p>
	</div>
</form>
</body>
</html>
